package com.paipaideli.ui.home.bean;

import java.lang.reflect.Field;
import java.io.Serializable;
import java.util.List;

public class HomeBean implements Serializable {

    public String msg;
    public String code;
    public String status;
    public Data data;

    public class Data implements Serializable {

        public String sysMessageRes;

        public List<AuctionInfoRes> auctionInfoRes;

        public class AuctionInfoRes implements Serializable {

            public String no;
            public String publishTime;
            public String goodsStartingPrice;
            public String isNewSpecial;
            public String coverImgPath;
            public String goodsCappedPrice;
            public String goodsMarketPrice;
            public String goodsId;
            public String continuityType;
            public String goodsPriceIncreaseRange;
            public String newSpecialType;
            public String goodsBottomPrice;
            public String timeLength;
            public String websiteUrl;
            public String roomSize;
            public String creater;
            public String timeInterval;
            public long startTime;
            public long endTime;
            public String id;
            public String goodsName;

            @Override
            public String toString() {
                String s = "";
                Field[] arr = this.getClass().getFields();
                for (Field f : getClass().getFields()) {
                    try {
                        s += f.getName() + "=" + f.get(this) + "\n,";
                    } catch (Exception e) {
                    }
                }
                return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
            }
        }

        public List<SysDocRes> sysDocRes;

        public class SysDocRes implements Serializable {

            public String imagePath;
            public String id;
            public String title;
            public String content;
            public String externalLinks;

            @Override
            public String toString() {
                String s = "";
                Field[] arr = this.getClass().getFields();
                for (Field f : getClass().getFields()) {
                    try {
                        s += f.getName() + "=" + f.get(this) + "\n,";
                    } catch (Exception e) {
                    }
                }
                return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
            }
        }

//        public List<SysMessageRes> sysMessageRes;
//
//        public class SysMessageRes implements Serializable {
//
//            public String isRead;
//            public String title;
//            public String type;
//            public String send;
//            public String userId;
//            public String content;
//            public String status;
//
//            @Override
//            public String toString() {
//                String s = "";
//                Field[] arr = this.getClass().getFields();
//                for (Field f : getClass().getFields()) {
//                    try {
//                        s += f.getName() + "=" + f.get(this) + "\n,";
//                    } catch (Exception e) {
//                    }
//                }
//                return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
//            }
//        }

        public List<BannerRes> bannerRes;

        public class BannerRes implements Serializable {

            public String imagePath;
            public String externalLinks;
            public String id;
            public String position;
            public String title;
            public String content;

            @Override
            public String toString() {
                String s = "";
                Field[] arr = this.getClass().getFields();
                for (Field f : getClass().getFields()) {
                    try {
                        s += f.getName() + "=" + f.get(this) + "\n,";
                    } catch (Exception e) {
                    }
                }
                return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
            }
        }

        @Override
        public String toString() {
            String s = "";
            Field[] arr = this.getClass().getFields();
            for (Field f : getClass().getFields()) {
                try {
                    s += f.getName() + "=" + f.get(this) + "\n,";
                } catch (Exception e) {
                }
            }
            return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
        }
    }

    @Override
    public String toString() {
        String s = "";
        Field[] arr = this.getClass().getFields();
        for (Field f : getClass().getFields()) {
            try {
                s += f.getName() + "=" + f.get(this) + "\n,";
            } catch (Exception e) {
            }
        }
        return getClass().getSimpleName() + "[" + (arr.length == 0 ? s : s.substring(0, s.length() - 1)) + "]";
    }
}